{% extends "base.html" %}

{% block title %}编辑专长领域{% endblock %}

{% block content %}
<div class="container mt-4">
    <h2>编辑专长领域</h2>
    <form method="POST" action="{{ url_for('edit_specialty') }}">
        <div class="mb-3">
            <label for="specialty" class="form-label">您的专长领域</label>
            <input type="text" class="form-control" id="specialty" name="specialty" 
                   value="{{ specialty or '' }}" required>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
        <a href="{{ url_for('creator_home', user_id=current_user.id) }}" class="btn btn-secondary">取消</a>
    </form>
</div>
{% endblock %}
